package com.example.demo.repository;

import com.example.demo.model.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @description:
 * @author：naxiaozi，微信：naxiaozi
 * @date: 2025/9/8
 * @Copyright：
 */
@Repository
public interface UserRepository extends JpaRepository<User,Long> {
    List<User> findByNameContaining(String name);
    List<User> findByPhoneNumberContaining(@Param("phone") String  phone);
}
